<?php
/* 
-------------------------------
ERP Elyazalée 
Développé par Loïc PIQUARD
SARL Elyazalée - 2009
www.elyazalee.com
-------------------------------
*/
// recup : param
$numero_module="12";
switch($_REQUEST['param'])
	{
	case 'categories':
		include ('categories.php');
	break;
	
	case 'actualites':		
		// verification de la presence d'une catégorie
		$requete=requete("SELECT id FROM actualites_categories WHERE actif=1");
		$nb_cat=mysql_num_rows($requete);
		if ($nb_cat==0)
			{
			include ('categories.php');
			}
		else
			{
			include ('actualites.php');	
			}		
	break;	
	
	case 'actualitesajout':
		include ('actualites_ajout.php');
	break;
	
	default:
		include ('categories.php');
	break;	
	}
?>